/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ejb;

import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.ejb.LocalBean;

/**
 *
 * @author Giuseppe
 */
@Stateless
@LocalBean
public class GestoreBusinessLogic {
    @EJB
    private SpikeFirstFacade spikeFirstFacade; //collegamento con il "modello"

    //crato tramite AddBusinessLogic
    public List<SpikeFirst> list() {
        return spikeFirstFacade.findAll();
    }

    public void add(SpikeFirst spike) {
        spikeFirstFacade.create(spike);
    }

    
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
 
}
